package com.paradisecloudtech.vc.system.mvp.bean;

public class LoginResultBean {


    /**
     * errorCode : 0
     * errorMessage : OK
     * result : {"user":{"id":1,"userid":"admin","password":"123456","username":"管理员","role":0,"mobilephone":"123","homephone":"23","ipphone":"1312","dept":"IT","title":"经理","email":"admin@eccom.com.cn"},"token":"878f9e8b-1b8c-4dab-b4ad-d50c16b4e2a3"}
     */

    private int errorCode;
    private String errorMessage;
    private ResultBean result;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * user : {"id":1,"userid":"admin","password":"123456","username":"管理员","role":0,"mobilephone":"123","homephone":"23","ipphone":"1312","dept":"IT","title":"经理","email":"admin@eccom.com.cn"}
         * token : 878f9e8b-1b8c-4dab-b4ad-d50c16b4e2a3
         */

        private UserBean user;
        private String token;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class UserBean {
            /**
             * id : 1
             * userid : admin
             * password : 123456
             * username : 管理员
             * role : 0
             * mobilephone : 123
             * homephone : 23
             * ipphone : 1312
             * dept : IT
             * title : 经理
             * email : admin@eccom.com.cn
             */

            private int id;
            private String userid;
            private String password;
            private String username;
            private int role;
            private String mobilephone;
            private String homephone;
            private String ipphone;
            private String dept;
            private String title;
            private String email;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUserid() {
                return userid;
            }

            public void setUserid(String userid) {
                this.userid = userid;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public int getRole() {
                return role;
            }

            public void setRole(int role) {
                this.role = role;
            }

            public String getMobilephone() {
                return mobilephone;
            }

            public void setMobilephone(String mobilephone) {
                this.mobilephone = mobilephone;
            }

            public String getHomephone() {
                return homephone;
            }

            public void setHomephone(String homephone) {
                this.homephone = homephone;
            }

            public String getIpphone() {
                return ipphone;
            }

            public void setIpphone(String ipphone) {
                this.ipphone = ipphone;
            }

            public String getDept() {
                return dept;
            }

            public void setDept(String dept) {
                this.dept = dept;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }
        }
    }
}
